package awt.awt00;

import java.awt.*;

public class scrollPaneDemo {
    public static void main(String[] args){
        Frame frame = new Frame("ScrollPane");

        ScrollPane sp=new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);

        sp.add(new TextField("文本框"));
        sp.add(new Button("按钮"));

        frame.add(sp);

        frame.setBounds(100,100,500,300);
        frame.setVisible(true);

    }
}
